package tool.dataType;

import java.io.InputStream;
import java.net.Socket;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;

public class ClientStruct {


	private Integer id;

	private String name;

	private Socket socket;

	private SocketChannel channel;

	private InputStream inputStream;

	private byte[] bytes = new byte[2*1024*1024];

	private boolean need = false;
	
	public byte[] getBytes() {
		return bytes;
	}
	public void setBytes(byte[] bytes) {
		this.bytes = bytes;
	}
	public InputStream getInputStream() {
		return inputStream;
	}
	public void setInputStream(InputStream inputStream) {
		this.inputStream = inputStream;
	}
	private ByteBuffer buf = ByteBuffer.allocate(10*1024*1024);
	
	public ByteBuffer getBuf() {
		return buf;
	}
	public void setBuf(ByteBuffer buf) {
		this.buf = buf;
	}
	public Socket getSocket() {
		return socket;
	}
	public void setSocket(Socket socket) {
		this.socket = socket;
	}
	public SocketChannel getChannel() {
		return channel;
	}
	public void setChannel(SocketChannel channel) {
		this.channel = channel;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public boolean isNeed() {
		return need;
	}

	public void setNeed(boolean need) {
		this.need = need;
	}
}
